//用户相关接口
const express = require("express");
const router = express.Router()
const UserController = require('../controller/UserController')
//注册接口
router.post('/register', UserController.register);
//登录接口
router.post('/login', UserController.login);
// 忘记密码接口
router.post('/forget', UserController.forget);
// 个人信息接口开发
router.get('/detail', UserController.detail)
//上报学习时长
router.post('/duration_record',  UserController.duration_record)


module.exports = router